package edu.iastate.cs228.hw4;


/**
 * Helper class that represents a subarray to be merged
 * 
 * @author Devon Eilers
 *
 */
public class StackItem
{
	public int first;
	public int last;
	public boolean sorted;
	
	public StackItem(int first, int last, boolean sorted)
	{
		this.first = first;
		this.last = last;
		this.sorted = sorted;
	}
	
	@Override
	public String toString()
	{
		return first + " " + last + " " + sorted;
	}
}
